package org.ipower.examsystem.action;
import org.ipower.examsystem.service.CatalogService;
import org.ipower.platform.service.TreeDataCollection;

/**
 * 考试科目树结构。
 * @author jeasonyoung
 */
public class CatalogTreeAction extends ModuleBaseAction<CatalogService> {
    private static final long serialVersionUID = 1L;
     private TreeDataCollection catalogs;
     /**
      * 获取考试科目树形结构。
      * */
     public TreeDataCollection getChildren(){
         return this.catalogs;
     }
     /**
     * 默认执行。
     * @return 执行结果。
     * */
    @Override
    public String execute() throws Exception{
         this.catalogs = this.getService().CatalogTree();
        return SUCCESS;
    }
}